﻿<Application
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:vm="clr-namespace:Drafter.ViewModel"
             xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity" xmlns:GalaSoft_MvvmLight_Command="clr-namespace:GalaSoft.MvvmLight.Command;assembly=GalaSoft.MvvmLight.Extras.WPF4" x:Class="Drafter.App"
             StartupUri="MainWindowView.xaml"
             mc:Ignorable="d">

    <Application.Resources>
    	<ResourceDictionary>
    		<ResourceDictionary.MergedDictionaries>
    			<ResourceDictionary Source="Simple Styles.xaml"/>
    			<ResourceDictionary Source="DrafterResourcesDictionary.xaml"/>
    		</ResourceDictionary.MergedDictionaries>
    		<!--Global View Model Locator-->
    		<vm:ViewModelLocator x:Key="Locator"
    			d:IsDataSource="True" />
    		<Style x:Key="DrafterButtonStyle" TargetType="{x:Type Button}">
    			<Setter Property="Template">
    				<Setter.Value>
    					<ControlTemplate TargetType="{x:Type Button}">
    						<Grid>
    							<Path x:Name="CloseX" Data="M432.3857,269.5078L436.8927,264.9998L432.3847,260.4918C431.7997,259.9068,431.7997,258.9558,432.3847,258.3718L437.3717,253.3838C437.9567,252.7998,438.9067,252.7998,439.4917,253.3838L444.0007,257.8928L448.5077,253.3848C449.0927,252.7998,450.0437,252.7998,450.6277,253.3848L455.6157,258.3718C456.1997,258.9568,456.1997,259.9068,455.6157,260.4918L451.1077,264.9998L455.6147,269.5068C456.1997,270.0918,456.1997,271.0418,455.6147,271.6268L450.6277,276.6138C450.0427,277.1988,449.0927,277.1988,448.5077,276.6138L444.0007,272.1068L439.4927,276.6148C438.9077,277.1998,437.9577,277.1998,437.3727,276.6148L432.3857,271.6278C431.8007,271.0428,431.8007,270.0928,432.3857,269.5078" Fill="White" RenderTransformOrigin="-6.157,-1.074" Stretch="Fill"/>
    						</Grid>
    						<ControlTemplate.Triggers>
    							<Trigger Property="IsFocused" Value="True"/>
    							<Trigger Property="IsDefaulted" Value="True"/>
    							<Trigger Property="IsMouseOver" Value="True"/>
    							<Trigger Property="IsPressed" Value="True"/>
    							<Trigger Property="IsEnabled" Value="False"/>
    						</ControlTemplate.Triggers>
    					</ControlTemplate>
    				</Setter.Value>
    			</Setter>
    		</Style>
    		<Style x:Key="ButtonStyle1" TargetType="{x:Type Button}">
    			<Setter Property="Template">
    				<Setter.Value>
    					<ControlTemplate TargetType="{x:Type Button}">
    						<Grid Background="Black">
    							<Viewbox>
    								<Path Data="M731.9043,216.3599L732.9963,210.4669C733.0243,210.0879,733.1533,209.6999,733.4063,209.4059L746.1753,196.6439 752.3073,202.7769 739.5393,215.5389C739.4003,215.6789,738.8663,215.9959,738.6873,216.0269L732.6853,217.1419C732.1523,217.2429,731.8023,216.8939,731.9043,216.3599 M734.8823,215.2609L738.2413,214.6919 749.9203,203.0129 748.5263,201.6269 736.9233,213.2379 734.6963,210.8699 734.0843,214.3989C734.4723,214.5629,734.7213,214.8679,734.8823,215.2609 M753.7163,201.3689L747.5843,195.2359 749.5683,193.2529C750.1173,192.7029,751.0083,192.7029,751.5573,193.2529L755.7013,197.3959C756.2503,197.9449,756.2503,198.8359,755.7013,199.3859z" Fill="{TemplateBinding Foreground}" Stretch="Fill" RenderTransformOrigin="0.606,-11.012" Height="35" Width="37.278" />
    							</Viewbox>
    						</Grid>
    						<ControlTemplate.Triggers>
    							<Trigger Property="IsFocused" Value="True"/>
    							<Trigger Property="IsDefaulted" Value="True"/>
    							<Trigger Property="IsMouseOver" Value="True"/>
    							<Trigger Property="IsPressed" Value="True"/>
    							<Trigger Property="IsEnabled" Value="False"/>
    						</ControlTemplate.Triggers>
    					</ControlTemplate>
    				</Setter.Value>
    			</Setter>
    		</Style>
    	</ResourceDictionary>
    </Application.Resources>

</Application>
